import request from '@/utils/request'

// 查询施工检查问题列表
export function listCheckProblem(query) {
  return request({
    url: '/check/checkProblem/list',
    method: 'get',
    params: query
  })
}

// 查询施工检查问题详细
export function getCheckProblem(checkProblemId) {
  return request({
    url: '/check/checkProblem/' + checkProblemId,
    method: 'get'
  })
}

// 新增施工检查问题
export function addCheckProblem(data) {
  return request({
    url: '/check/checkProblem',
    method: 'post',
    data: data
  })
}

// 修改施工检查问题
export function updateCheckProblem(data) {
  return request({
    url: '/check/checkProblem',
    method: 'put',
    data: data
  })
}

// 删除施工检查问题
export function delCheckProblem(checkProblemId) {
  return request({
    url: '/check/checkProblem/' + checkProblemId,
    method: 'delete'
  })
}

// 查询施工检查问题不分页列表
export function selectListCheckProblem(query) {
  return request({
    url: '/check/checkProblem/selectList',
    method: 'get',
    params: query
  })
}
